<%-- 
    Document   : administrador
    Created on : 27/06/2014, 23:00:10
    Author     : Rodriguez
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>

<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
        <title>Administrador</title>
    </head>
    <body>
        <div align="center">
            <h1>Gestión de tareas</h1>
            <hr width="80%">
            <p>Seleccione qué desea realizar:</p>
            <html:form action="/opcion">
                <html:select property="tareaRealizar" size="1">
                    <option value="a">Agregar Tarea</option>
                    <option value="m">Modificar Tarea</option>
                    <option value="e">Eliminar Tarea</option>
                </html:select> 
                    <br><br>
                    <button type="submit" class="btn btn-primary center-block">Realizar Tarea</button>
            </html:form>
                    <br>
                <form action="mostrarTareasPub.do">
                    <input type="submit" class="btn btn-warning" value="Desloguearse">
            </form>
                    <hr width="80%">
                    <p><b><u>Tareas públicas y privadas:</u></b></p>
            <logic:empty name="listaTareas">
                <p align=>No hay tareas para mostrar.</p>
            </logic:empty>
            <logic:notEmpty name="listaTareas">                
                <logic:iterate name="listaTareas" id="tarea">
                    <p>
                        La tarea <bean:write name="tarea" property="descripcion"/>
                        a vencer el <bean:write name="tarea" property="dia"/>/<bean:write name="tarea" property="mes"/>/<bean:write name="tarea" property="año"/>
                        a las <bean:write name="tarea" property="hora"/>hs, tiene un <bean:write name="tarea" property="porcentaje"/>% ya realizado tiene visibilidad <bean:write name="tarea" property="visibilidad"/>.
                    </p>
                </logic:iterate></logic:notEmpty>
        </div>
    </body>
</html>
